<?php
class PagePagehtml extends Page
	{
	protected function build()
		{
		$f = $this->add(new Pages_Html('MYPAGE'));
		$f->setDisplayDepth(1);
		$this->page = $f->selectCurrentElement('f_url', Pages_Html::getSelectionUrl( $_GET['url'] ));

		$f = $this->add(new Pages_Html('SUBPAGE'));
		$f->setFilter('f_status=1 and f_parent_id='.$this->page['id']);
		}
		
	////////////////////////////////////////////////////////////
	public function getCachedFilename()
		{
		$base = parent::getCachedFilename();
		return $base . '_' . $this->page['f_url'];
		}
		
	protected function getPageUrl() { return '/'; }
	protected function getBreadcrumbTitle() { return 'Accueil'; }
	protected function getPageParent() { return ''; }
	}
?>